home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / misc / wclass20.zip / CPPMAIN.CPP < prev    next >
C/C++ Source or Header  |  1995-01-16  |  830b  |  32 lines

  1. //This sample main program may be used to test C++ code generation scripts.
  2. //In With Class load cppcar.omt.  Run the scripts cpphead.sct and cppfunc.sct
  3. //or borland scripts.
  4. //Create a project in your C++ environment.  Add carmain.cpp, vehicle.cpp, 
  5. //car.cpp, motor.cpp, passenge.cpp, tire.cpp, and cellular.cpp.
  6. //Comments and suggestions are solicited Richard Felsinger, RCF Associates
  7. //960 Scottland Dr, Mt Pleasant, SC 29464 tele 803-881-3648 71162.755@compuserve.com
  8.  
  9. #include "car.h"
  10. #include <iostream.h>
  11.  
  12. int main ()
  13.   Car car1;
  14.   cout << car1;
  15.   
  16.   Car car2 (car1);
  17.   cout << car2;
  18.   
  19.   Car car3 (55, 10);
  20.   cout << car3;
  21.  
  22.   Car car4;
  23.   cin >> car4;
  24.   cout << car4;
  25.  
  26.   if (car1 == car4) cout << "Cars are equal." << "\n";
  27.   else cout << "Cars are not equal." << "\n";
  28.  
  29.   return 0;
  30. }
  31.